package com.duartepeixinho.P3D.ViewPort
{
	import com.duartepeixinho.P3D.Cameras.Camera;
	import com.duartepeixinho.P3D.Cameras.Camera3D;
	import com.duartepeixinho.P3D.Renderers.Renderer;
	import com.duartepeixinho.P3D.Scenes.Scene;
	import flash.display.Sprite;
	
	/**
	 * P3D
	 * @version 0.1
	 * @author Duarte Peixinho
	 */
	public class BasicView extends Sprite
	{
		
		public var viewport:ViewPort = new ViewPort();
		public var scene:Scene = new Scene();
		public var render:Renderer = new Renderer();
		public var camera:Camera = new Camera3D();
		
		public function BasicView() 
		{
			// adds render to stage
			addChild(render);
			
		}
		public function singleRender():void {
			render.singleRender(scene, viewport, camera);
		}
		
	}

}